package com.onpositive.datamap.values.impl;

public class PlainTextTokenAcceptor implements ITokenAcceptor{

	protected StringBuilder bld=new StringBuilder();
	

	public String toString(){
		return bld.toString();
	}
	
	public void reset(){
		bld.delete(0, bld.length());
	}

	@Override
	public void acceptValueSeparator() {
		bld.append("\n\n");
	}

	@Override
	public void acceptComparableValue(String text, String propertyId,
			Object value) {
		bld.append(text);
	}

	@Override
	public void acceptPlainText(String text, int style) {
		bld.append(text);
	}

	@Override
	public void acceptExternalIdentifier(String text, String url,
			String propertyid) {
		bld.append(text);
	}

	@Override
	public void acceptInternalIdentifier(String text, String number,
			String propertyId) {
		bld.append(text);
	}
}
